home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: vietual data in C++?
- Date: 14 Jan 1996 04:48:58 GMT
- Organization: self-employed
- Message-ID: <4da1vq$6v3@news.bridge.net>
- References: <4d94cn$9vo@fnnews.fnal.gov>
- NNTP-Posting-Host: ppp-mia2-95.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
- Oleg;
-
- >> i want to implement something like virtual data
-
- I find it hard to understand exactly what you are saying, but
- there is no 'virtual data' here. The classes D1 and D2 are
- two different types (because they involve different
- instantiations of the template Base). Virtual data, or
- virtual anything, is useful when the objects that you handle
- have the SAME type.
-
- The code is confusing because the name of the template
- parameter, Basedata, is the same as the name of the
- base class to which you are pointing. I wonder whether
- you are clear about what should happen here?
-
- David
-
-
-
-